package com.gzx.spring.apis.service;

import com.gzx.risk.core.apis.command.ApiCommand;
import com.gzx.risk.core.apis.context.ApiContext;
import com.gzx.risk.core.apis.result.RiskResult;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

@Service
@Slf4j
public class TanzhiGlobalRiskService implements ApiCommand {
    @Resource
    private TanzhiService tanzhiService;
    @Override
    public RiskResult exec(String groupName, ApiContext ctx) {
        return ApiExec.exec(this, "global_risk", () -> {
            return 	tanzhiService.global_risk(groupName, ctx);
        });
    }

    @Override
    public int getGroupId() {
        return 17;
    }
}
